<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Retrospective extends AppModel{
     public $validate = array(
        'message' => array(
            'rule' => 'notEmpty'
        )
    );
    
     public function isOwnedBy($post, $user) {
        return $this->field('id', array('id' => $post, 'creator_id' => $user)) === $post;
    }
}

?>
